package com.text
{
	public class Range
	{
		/**
		* The  zero based index of the first character in the string.
		*/
		private var _beginIndex:int;
		public function get beginIndex():int
		{
			return _beginIndex;
		}
		public function set beginIndex(value:int):void
		{
			_beginIndex = value; 
		}
	 
		 
		/**
		* The zero based index of the last character in the string. 
		*/
		private var _endIndex:int;
		public function get endIndex():int
		{
			return _endIndex;
		}
		public function set endIndex(value:int):void
		{
			_endIndex = value;
			 
		}
		
		public function Range(beginIndex:int, endIndex:int)
		{
			this._beginIndex = Math.min(beginIndex,endIndex);
			this._endIndex = Math.max(beginIndex,endIndex);
		}
		
		

	}
}
